package com.siwei.mes.service.erp;

import com.github.pagehelper.PageInfo;
import com.siwei.mes.common.query.PageQuery;
import com.siwei.mes.entity.erp.Contractrelation;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * (Contractrelation)表服务接口
 *
 * @author linzi
 * @since 2024-09-24 20:07:56
 */
public interface ContractrelationService {
    /**
     * 获取所有分组  分页
     *
     * @param query
     * @return
     */
    PageInfo<Contractrelation> getPage(PageQuery<Contractrelation, Contractrelation> query);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    Contractrelation loadById(Long id);

    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<Contractrelation> getAll(Contractrelation entity);

    /**
     * 根据任务单id查询所有工程信息
     *
     * @param frwdList
     * @return
     */
    Map<Integer, Contractrelation> getContractrelationMap(Set<Integer> frwdList);
}
